<?php 
HBase::using('DAL.*');
class backend_usersroles_delete extends HModule {
	function run() {
		if (isset($_POST['flag'])) {
			self::process();
		}
	}
	
	function process() {
		$id = $_POST['flag'];
		if (HUsersRoles::delete($id))
			HUtil::alert('Deleted successfully!');
		else 
			HUtil::alert('ERROR! Deleted unsuccessfully!');
		HUtil::redirect(HCommon::navigateUrl('UsersRoles'));
	}
}

?>